<?php
class Core{
	public function __construct(){
		/* 调用后台模板 */
		$this->tpl = new Template('admin');
	}
	public function themeStyle($style){
		if(empty($style) && empty($_COOKIE['style'])){
			setcookie('style','blue',0);
			$style = 'blue';
		}elseif($style == $_COOKIE['style']){
			$style = $_COOKIE['style'];
		}else{
			setcookie('style',$style,0);
		}
		$this->tpl->assign('style',$style);
	}
}
?>